package org.gpf.game.tank.offline;

import java.awt.Graphics;
import java.awt.Rectangle;
/**
 * 墙
 * @author gaopengfei
 * @date 2015-5-8 上午10:14:05
 */
public class Wall {

	int x,y;		// 坦克的位置、宽高
	int w,h;
	TankClient tc;	// 持有大管家的引用
	
	public Wall(int x, int y, int w, int h, TankClient tc) {
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.tc = tc;
	}
	
	public void draw(Graphics g){
		
		g.fillRect(x, y, w, h);
	}
	
	public Rectangle getRect(){
		
		return new Rectangle(x, y, w, h);
	}
}
